<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <script>
        window.onload=function(){
            var app=new Vue({
                el:'#app',
                data:{
                    name:'lisi'
                },
                beforeCreate:function(){
                    //this->new Vue()
                    alert(this.name)
                },
                created:function(){
                    alert(this.name)
                }
            });
        }
        
    </script>
</head>
<body>
    <div id="app">
        {{name}}
    </div>
</body>
</html>